package com.shopping.dev.mapper;

import com.shopping.dev.vo.ItemCommentVO;
import com.shopping.dev.vo.SearchItemsVO;
import com.shopping.dev.vo.ShopCartVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ItemsMapperCustom {
    public List<ItemCommentVO> queryComments(@Param("paramMap") Map<String,Object> paramMap);

    public List<SearchItemsVO> searchItems(@Param("paramMap") Map<String, Object> paramMap);

    List<SearchItemsVO> searchItemsThirdByCatId(@Param("paramMap") Map<String, Object> paramMap);

    List<ShopCartVO> queryItemsBySpecIds(@Param("paramList") List<String> asList);

    int decreaseItemSpecStock(@Param("specid")String specid, @Param("buyCounts") Integer buyCounts);
}